package com.gitee.wsl.prism4j


class PatternImpl(
    private val regex: Regex,
    private val lookbehind: Boolean,
    private val greedy: Boolean,
    private val alias: String?,
    private val inside: Prism4j.Grammar?
) : Prism4j.Pattern {

    override fun regex(): Regex {
        return regex
    }

    override fun lookbehind(): Boolean {
        return lookbehind
    }

    override fun greedy(): Boolean {
        return greedy
    }

    override fun alias(): String? {
        return alias
    }

    override fun inside(): Prism4j.Grammar? {
        return inside
    }

    override fun toString(): String {
        return ToString.toString(this)
    }
}
